<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>    
<% request.setCharacterEncoding("UTF-8"); %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title> </title>
<link href="../css/style.css" rel="stylesheet" type="text/css">
<link href="../css/reset.css" rel="stylesheet" type="text/css">
<link href="../css/lib.css" rel="stylesheet" type="text/css">
<script src="http://code.jquery.com/ui/1.11.0/jquery-ui.js"></script>
<script>
$(document).ready(function(){
	
});
function apvBtnOk(){
	alert("창닫기.");
	window.close();
}
function updateCntr(gubun)
{
    var cnfMsg = "";
    
    if("request" == gubun)
    {
        cnfMsg = "결재를 요청하시겠습니까?";
    }
    else if("response1" == gubun)
    {
        cnfMsg = "해당 결재를 승인하시겠습니까?";
    }    
    else if("response2" == gubun)
    {
        cnfMsg = "결재 요청을 반려하시겠습니까?";
    }
    else if("response3" == gubun)
    {
        cnfMsg = "결재 요청을 부결하시겠습니까?";
    }
    
    if(confirm(cnfMsg))
    {
        if("request" == gubun)
        {
           alert("결재를 요청하였습니다.");         
        }
        else if("response1" == gubun)
        {
           alert("결재가 승인되었습니다.");
        }    
        else if("response2" == gubun)
        {
           alert("결재가 반려되었습니다.");
        }
        else if("response3" == gubun)
        {
           alert("결재가 부결되었습니다."); 
        } 
    }
}
</script>
</head>
<body>
<div id="creditpop">
        <h1>결재</h1>
        <!-- 검색박스시작 -->
            <div class="creditsearch">
                <form name="" method="" action="">
                    <fieldset>
                        <div class="cre_view">
                            <input type="button" name="" value="결재요청" class="pinkbtn cp" onclick="updateCntr('request')" />
                            <input type="button" name="" value="승인" class="pinkbtn cp" onclick="updateCntr('response1')" />
                            <input type="button" name="" value="반려" class="bluebtn cp" onclick="updateCntr('response2')" />
                            <input type="button" name="" value="부결" class="graybtn cp" onclick="updateCntr('response3')" />
                        </div>
                    </fieldset>
                </form>
            </div>
        <!-- 테이블시작 -->
         <table class="customer_table" border="0" cellspacing="0" cellpadding="0">
                <colgroup>
                    <col width="28%" />
                    <col width="*" />
                </colgroup>
                <tbody>
                    <tr>
                        <th>결재명</th>
                        <td class="end">OOO 고객님의 대출 결재요청</td>
                    </tr>
                    <tr>
                        <th>계약번호</th>
                        <td class="end">&nbsp;</td>
                    </tr>
                    <tr>
                        <th>대출원금</th>
                        <td class="end">&nbsp;</td>
                    </tr>
                    <tr>
                        <th>고객명</th>
                        <td class="end">&nbsp;</td>
                    </tr>
                    <tr>
                        <th>상신자명</th>
                        <td class="end">&nbsp;</td>
                    </tr>
                     <tr>
                        <th>승인자명</th>
                        <td class="end">&nbsp;</td>
                    </tr>
                    <tr>
                        <th>계약진행상태코드</th>
                        <td class="end">&nbsp;</td>
                    </tr>
                </tbody>
            </table>
        <div class="popupclose">
        <input type="button" class="graybtn" value="확인" onclick="apvBtnOk()">
        </div>
           
    </div><!--creditpop end-->
</body>
</html>